package cn.cdeden.knowledge.controller.filesDistribute;

import cn.cdeden.common.core.domain.R;
import cn.cdeden.knowledge.domain.dto.FilesDistributeSenderQueryParam;
import cn.cdeden.knowledge.service.FilesDistributeSenderService;
import lombok.RequiredArgsConstructor;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 接收人管理
 */
@RestController
@RequiredArgsConstructor
//@Api(tags = "接收人管理")
@RequestMapping("/api/filesDistributeSender")
public class FilesDistributeSenderController {

    private final FilesDistributeSenderService filesDistributeSenderService;

    /**
     * 查看接收人
     * @param query
     * @param pageable
     * @return
     */
//    @Log("查看接收人")
//    @ApiOperation("查看接收人")
    @GetMapping(value = "/query")
    @ResponseBody
    public R query(FilesDistributeSenderQueryParam query, Pageable pageable){
        return R.ok(filesDistributeSenderService.queryAll(query,pageable));
//        return BaseRespResult.successResult(filesDistributeSenderService.queryAll(query,pageable));
    }

}
